<p>Now you know all the basic types in Swift, we can start to put them together using operators. Operators are those little mathematical symbols like <code>+</code> and <code>-</code>, and Swift has a huge range of them.</p>
<p>Here are a couple of test variables for us to work with:</p>
<pre class="code">
<p></p>
<p><span class="keyword">let</span> firstScore <span class="operator">=</span> <span class="number">12</span></p>
<p><span class="keyword">let</span> secondScore <span class="operator">=</span> <span class="number">4</span></p>
<p></p>
</pre>

<p style="height: 0px; margin-bottom: 0px;"></p>
<p>We can add and subtract using <code>+</code> and <code>-</code>:</p>
<pre class="code">
<p></p>
<p><span class="keyword">let</span> total <span class="operator">=</span> firstScore <span class="operator">+</span> secondScore</p>
<p><span class="keyword">let</span> difference <span class="operator">=</span> firstScore <span class="operator">-</span> secondScore</p>
<p></p>
</pre>

<p style="height: 0px; margin-bottom: 0px;"></p>
<p>And we can multiply and divide using <code>*</code> and <code>/</code>:</p>
<pre class="code">
<p></p>
<p><span class="keyword">let</span> product <span class="operator">=</span> firstScore <span class="operator">*</span> secondScore</p>
<p><span class="keyword">let</span> divided <span class="operator">=</span> firstScore <span class="operator">/</span> secondScore</p>
<p></p>
</pre>

<p style="height: 0px; margin-bottom: 0px;"></p>
<p>Swift has a special operator for calculating remainders after division: <code>%</code>. It calculates how many times one number can fit inside another, then sends back the value that’s left over.</p>
<p>For example, we set <code>secondScore</code> to 4, so if we say <code>13 % secondScore</code> we’ll get back one, because 4 fits into 13 three times with remainder one:</p>
<pre class="code">
<p></p>
<p><span class="keyword">let</span> remainder <span class="operator">=</span> <span class="number">13</span> <span class="operator">%</span> secondScore</p>
<p></p>
</pre>

<p style="height: 0px; margin-bottom: 0px;"></p>